const TOKEN_KEY = 'geek_pc'
// 存储
export function setToken(val) {
  localStorage.setItem(TOKEN_KEY, val)
}
//获取
export function getToken() {
  return localStorage.getItem(TOKEN_KEY)
}
//清除
export function removeToken() {
  localStorage.removeItem(TOKEN_KEY)
}
// 判断有还是没有

export function hasToken() {
  return !!getToken()
}
